package com.yc.goods.controller;

import com.yc.goods.biz.GoodsVOBiz;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("goods")
@Slf4j
public class GoodsVOController {
    @Autowired
    private GoodsVOBiz goodsVOBiz;

    @GetMapping("findByPage")
    public Map<String, Object> findByPage(Integer tno , Integer page, Integer pageSize){
        Map<String, Object> map = goodsVOBiz.findByPage(tno, page, pageSize);
        return map;
    }
}
